const express = require("express")
const router = express.Router();
const db = require("../config/db")
router.get("/user", (req, res, next) => {
    // res.send("user")
    const sql = "select * from user where 1=1"
    db.query(sql, [], results => {
    res.json({
        errno: 0, message: results
    })
})
})
module.exports = router

